﻿#region Namespace References

using System;
using System.Windows.Forms;
using DynConDevCorp.OpenArch.SmartData.BillingDemo1.ApplicationBusinessObjects;
using DynConDevCorp.OpenArch.SmartData.BillingDemo1.BusinessLogic;
using DynConDevCorp.OpenArch.SmartData.Core;

#endregion

namespace DynConDevCorp.OpenArch.SmartData.BillingDemo1.ApplicationForms
{
    public partial class CustomerForm : Form
    {
        #region Constructors

        public CustomerForm()
        {
            InitializeComponent();
        }

        #endregion

        #region Private Instance Methods

        private void CustomerForm_Load(object sender, EventArgs e)
        {
            m_Customer = new SmartEntityLink<Customer>();
            m_Customer.LinkedEntity = MasterDataStore.GlobalInstance.GetCustomer();
            ctrlCustomer.Customer.LinkedEntity = m_Customer.LinkedEntity;
        }

        #endregion

        #region Fields and Constants

        private SmartEntityLink<Customer> m_Customer;

        #endregion
    }
}